@using OrchardCore.DisplayManagement
@model DataTableViewModel

<h2>@RenderTitleSegments(Model?.Provider?.Description ?? T["DataTable"].Value)</h2>

@await DisplayAsync(await New.Lombiq_DataTable_Before())

@foreach (var beforeTableShape in Model.BeforeTable ?? Array.Empty<IShape>())
{
    @await DisplayAsync(beforeTableShape)
}
@await DisplayAsync(await New.Lombiq_DataTable(ViewModel: Model.Definition))
@foreach (var afterTableShape in Model.AfterTable ?? Array.Empty<IShape>())
{
    @await DisplayAsync(afterTableShape)
}
